﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template2.Master" AutoEventWireup="true" CodeBehind="AuctionLog.aspx.cs" Inherits="EnglishAuction.AuctionLog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    Nhật ký đấu giá
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
    <form runat="server">
        <div style="border: solid 1px; background-color: #FFF; border-radius: 5px; border-color: #CCCCCC; width: 100%;">
            <div style="font-size: 20px; padding: 10px;">
                Nhật ký đấu giá
            </div>
            <hr style="border-style: inset; border-width: 1px; width: 98%;" />
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">Đấu giá thành công</a></li>
                    <li><a href="#tabs-2">#</a></li>
                </ul>
                <div id="tabs-1" style="text-align: left; background-color: #FFF;">
                    <table style="width: 100%;">
                        <tr>
                            <td style="text-align: center; color: red">
                                <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label></td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                                <div style="overflow: auto; width: 1000px; margin: 0 auto;">
                                    <asp:GridView ID="gvNhatKyDauGia"
                                        runat="server"
                                        AutoGenerateColumns="False"
                                        CellPadding="4"
                                        OnRowDataBound="gvNhatKyDauGia_RowDataBound"
                                        AllowPaging="True"
                                        OnRowCommand="gvNhatKyDauGia_RowCommand"
                                        HeaderStyle-BackColor="#eeeeee"
                                        Style="border: 1px solid #D8D8D8; background-color: #ffffff;"
                                        Width="100%" PageSize="20">
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="STT" ItemStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên sản phẩm">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="header" NavigateUrl='<%# "DetailsProduct.aspx?Id="+Eval("SanPhamId") %>'><%#Eval("TenSanPham")%></asp:HyperLink>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="GiaSan" DataFormatString="{0:###,###} (VNĐ)" HeaderStyle-HorizontalAlign="Right" HeaderText="Giá sàn" ItemStyle-HorizontalAlign="Right">
                                                <HeaderStyle Width="120px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="GiaHienTai" DataFormatString="{0:###,###} (VNĐ)" HeaderText="Giá đưa ra" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                                                <HeaderStyle Width="120px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ThoiGian" DataFormatString="{0:hh:mm tt dd/MM/yyyy}" HeaderText="Thời gian" HeaderStyle-HorizontalAlign="Center">
                                                <HeaderStyle Width="120px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:ImageField DataImageUrlField="HinhAnh" DataImageUrlFormatString="~/images/{0}" HeaderText="Hình ảnh" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                                                <ControlStyle Height="50px" Width="50px" />
                                                <HeaderStyle Width="70px" />
                                            </asp:ImageField>
                                            <asp:TemplateField Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbId" runat="server" Text='<%#Eval("Id")%>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Thanh toán">
                                                <ItemTemplate>
                                                    <asp:Button Width="100" Height="35" ID="imgPayment" Text="Thanh toán" CssClass="button" CommandName="Payment" CausesValidation="false" CommandArgument='<%#Eval("Id")%>' runat="server" Font-Names="Arial" Style="height: 30px;"></asp:Button>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <ItemStyle Width="100px" HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle BackColor="#eeeeee" ForeColor="White" HorizontalAlign="Center" />
                                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                        <EmptyDataTemplate>
                                            <div style="text-align:center;">
                                                Không có sản phẩm nào.
                                            </div>
                                        </EmptyDataTemplate>
                                    </asp:GridView>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <div style="text-align: center;">
                        <a href="#" onclick="javascript:window.open('https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');">
                            <img src="https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif" border="0"
                                alt="Solution Graphics" /></a>
                    </div>
                    <br />
                </div>
                <div id="tabs-2" style="text-align: left;">
                    <div style="overflow: auto; width: 1000px; margin: 0 auto;">
                        <asp:GridView ID="gvNhatKyAll"
                            runat="server"
                            AutoGenerateColumns="False"
                            CellPadding="4"
                            AllowPaging="True"
                            HeaderStyle-BackColor="#eeeeee"
                            Style="border: 1px solid #D8D8D8; background-color: #ffffff;"
                            Width="100%" PageSize="20">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:TemplateField HeaderText="STT" ItemStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tên sản phẩm">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="header" NavigateUrl='<%# "DetailsProduct.aspx?Id="+Eval("SanPhamId") %>'><%#Eval("TenSanPham")%></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="GiaSan" DataFormatString="{0:###,###} (VNĐ)" HeaderText="Giá sàn" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                                    <HeaderStyle Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="GiaHienTai" DataFormatString="{0:###,###} (VNĐ)" HeaderText="Giá đưa ra" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">
                                    <HeaderStyle Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ThoiGian" DataFormatString="{0:hh:mm tt dd/MM/yyyy}" HeaderText="Thời gian" HeaderStyle-HorizontalAlign="Center">
                                    <HeaderStyle Width="120px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:ImageField DataImageUrlField="HinhAnh" DataImageUrlFormatString="~/images/{0}" HeaderText="Hình ảnh" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                                    <ControlStyle Height="50px" Width="50px" />
                                    <HeaderStyle Width="70px" />
                                </asp:ImageField>
                            </Columns>
                            <PagerStyle BackColor="#eeeeee" ForeColor="White" HorizontalAlign="Center" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            <EmptyDataTemplate>
                                            <div style="text-align:center;">
                                                Không có sản phẩm nào.
                                            </div>
                                        </EmptyDataTemplate>
                        </asp:GridView>
                    </div>
                </div>
            </div>

        </div>
    </form>
    <br />
</asp:Content>
